package com.lulin.mall.order.fegin;

import com.lulin.mall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 远程调用购物车服务相关
 *
 * @author lulin
 * @date 2022/12/22 15:04
 */
@FeignClient(name = "mall-cart")
public interface CartFeignService {

    /**
     * 获取当前登录用户，购物车中的商品信息
     */
    @GetMapping("/getUserCartItems")
    List<OrderItemVo> getUserCartItems();
}
